//引入方法创建路由
import {createBrowserRouter} from 'react-router-dom'

//引入组件
import LoginPage from '../Login/LoginPage'
import Home from '../Home/Home'

//创建路由实例，配置路由
const router = createBrowserRouter([
    {
        path:'/app',
        element:<Home></Home>
    },
    {
        path:'/login/:id/:name',
        element:<LoginPage></LoginPage>
    },
])

//抛出路由
export default router 